<?php
include_once '../inc/config.inc.php';
include_once '../inc/mysqli.inc.php';
include_once '../inc/tool.inc.php';
$link=connect();
if(is_login($link)){
    skip('index.php','attention','您已经登陆，请不要重复登陆！');
}
if(!isset($_GET['url'])){
    $_GET['url']='/Project_bbs/front/index.php';
}

if(isset($_POST['submit'])){
  //  var_dump($_POST);exit();
$_POST=tosqlstring($link,$_POST);
$checkflag='login';
include_once 'inc/checkRegister.inc.php';

}
$template='欢迎登陆';
include_once 'inc/header.inc.php';
?>
        <div class="lgmain">
            <div class="wrap clear-float">
                <div class="header">欢迎登陆</div>
                <form method="post">
                    <div class="clear-float">
                        <label>用户名：<input type="text" name="name" /><span></span></label>
                        <label>密码：<input type="password" name="pw" /><span></span></label>
                        <label>验证码：<input type="text" name="vcode" /><span>* 请输入下方验证码</span></label>
                        <img class="login" src="/Project_bbs/img/vcode.php"/>
                    </div>
                    <label>自动登陆：
                        <select name="time">
                            <option value="3600">1小时内</option>
                            <option value="86400">1天内</option>
                            <option value="259200">3天内</option>
                            <option value="2592000">30天内</option>
                        </select>    
                        <span>*公共电脑上请勿长期自动登录</span>
                    </label> 
                    <input type="submit" class="login_submit" value="登陆" name="submit"/>
                </form>
            </div>
        </div>
<?php
include_once 'inc/footer.inc.php';
?>